<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>.::IFConnect::.</title>
        <link href="../styles/mainadmin.css" type="text/css" rel="stylesheet" media="all" />      
    </h:head>
    <h:body>
        <p:growl />
        <div id="cabecalho">
            <a href="principalAdmin.xhtml" alt="Administração" title="Voltar a página principal de administração"><img src="../images/topadmin.png" width="700" height="100" alt="Área Administrativa" /></a>
            <br />
            <div id="logincontrol">
                <h:panelGrid columns="2">
                    <h:outputText value="Bem-vindo #{usuariologin.usuario.nome} #{usuariologin.usuario.sobrenome}  " />
                    <h:form>
                        <h:commandLink value="Logoff" action="#{usuariologin.logout()}"/>
                    </h:form>
                </h:panelGrid>

            </div>
        </div>
        <div id="estrutura">
            <div id="conteudo">

                <h2>Painel de Administração</h2>

                <div id="avisos">
                    <h3>Avisos!!!</h3>
                    <br/>
                    <h:link id="aviso1" value="Sem pedidos de acesso de usuário pendentes!" rendered="#{usuariologin.mostrarAviso1}" />
                    <h:link id="aviso2" outcome="#{usuariologin.carregaCadastrosPendentes()}" value="Existem pedidos de acesso de usuário pedentes!" rendered="#{usuariologin.mostrarAviso2}" />
                </div>
                <table id="opcoesadmin">
                    <tr>
                        <td>
                            <h:link outcome="#{usuariologin.carregaCadastrosPendentes()}">
                                <h:graphicImage value="/images/icones/controlaracesso.png" />
                                <br/>
                                <h:outputText value="Gerenciar Acesso"/>
                            </h:link>
                        </td>
                        <td>
                            <h:link outcome="paginaCadastroCampus.xhtml">
                                <h:graphicImage value="/images/icones/campus.png" />
                                <br/>
                                <h:outputText value="Manter Campus"/>
                            </h:link>
                        </td>
                        <td>
                            <h:link outcome="paginaManterCurso.xhtml">
                                <h:graphicImage value="/images/icones/curso.png" />
                                <br/>
                                <h:outputText value="Manter Cursos"/>
                            </h:link>
                        </td>
                        <td>
                            <h:link outcome="paginaManterTurma.xhtml">
                                <h:graphicImage value="/images/icones/turma.png" />
                                <br/>
                                <h:outputText value="Manter Turma"/>
                            </h:link>
                        </td>
                        <td>
                            <h:link outcome="paginaGerenciarDisciplina.xhtml">
                                <h:graphicImage value="/images/icones/disciplina.png" />
                                <br/>
                                <h:outputText value="Manter Disciplina"/>
                            </h:link>
                        </td>
                        <td>
                            <h:link outcome="paginaGerenciarProfessor.xhtml">
                                <h:graphicImage value="/images/icones/aluno.png" />
                                <br/>
                                <h:outputText value="Gerenciar Professores"/>
                            </h:link>
                        </td>
                        
                    </tr>
                    <tr>
                        <td>
                            <a href="">
                                <img src="../images/icones/comentario.png" alt="Analisar Comentários" /><br />
                                Analisar Comentários
                            </a>
                        </td>
                        <td>
                            <h:link outcome="paginaConfigurarConta.xhtml">
                                <h:graphicImage value="/images/icones/configuracao.png" />
                                <br/>
                                <h:outputText value="Configurar Conta"/>
                            </h:link>
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>

                </table>
            </div>
        </div>
    </h:body>
</html>

